<?php

include "connect.php";
$class_id=$_POST['class_id'];
$class_name=$_POST['class_name'];
$dept_id=$_POST['dept_id'];
$campus_id=$_POST['campus_id'];


$sq=mysql_query("select * From class where class_id='$class_id'");
while ($row = mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE class SET class_id='$class_id',class_name='$class_name',dept_id='$dept_id',campus_id='$campus_id'
where class_id='$class_id'");



}
header("location:update_class_success.php");
?>